<?php

namespace app\common\lib\Mq;

abstract class Drive
{
    public function sendMessage($queueName,$data){}
    public function receiveMessage($queueName=[], $callback, $bindQueueName){}
    /**
     * 返回信息
     * @param $code
     * @param $message
     * @return false|string
     */
    protected static function response($code,$message=''){
        $returnData =[
            'code'=>$code,
            'msg'=>$message
        ];
        return $returnData;
    }
}
